<%@ include file="/taglibs.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><decorator:title /></title>
    <link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
    <script src="${ctx}/scripts/jquery-1.7.js" type="text/javascript"></script>
    <script type="text/javascript">
	    function menuRedirect(menuId){
	    	$.ajax({
				url:'${ctx}/indexAction!queryAccess?menuId=' + menuId,
				type:'get',
				timeout:3000,
				dataType:"text",
				success: function(data){
					if(data == '0'){
						alert("您没有访问该菜单的权限!");
						return false;
					}else{
						if(menuId == 1){
							window.location.href = "${ctx}/indexAction";
						}else if(menuId == 2){
							window.location.href = "${ctx}/UserAction_personCenter";
						}
						return false;
					}
				}
			});
	    }
	    
	    $(document).ready(function() {
			$(".list-table tr:even").css("background", "#fdf3bf");
			$(".list-table tr:odd").css("background", "#ffffff"); 
			$(".list-table tr").bind("mouseover", function(){
				var rowNum = this.rowIndex;
				if(rowNum == 0)
					return;
				
				$(this).css("background", "#ffab34");
				$(this).css("cursor", "pointer");
				$(this).css("color", "white");
			});
			$(".list-table tr").bind("mouseout", function(){
				var rowNum = this.rowIndex;
				if(rowNum == 0)
					return;
				if(rowNum % 2 == 0){
					$(this).css("background", "#fdf3bf"); 
				}else{
					$(this).css("background", "#ffffff");
				}
				$(this).css('color', 'black');
			});
		});
    </script>
    
    
    
    <script type="text/javascript">
		$(function(){
			var pathname = window.location.pathname;
			
			var array = pathname.split("_");
			var id = array[0].substring(1);
			 
			$('#' + id).css('color', 'yellow');
		});
	</script>
    
    <decorator:head/>
</head>
<body>
<div id="site_banner_common">&nbsp;</div>
<div id="site_menu">
    <div   class="menuItem"><a id="indexAction" href="${ctx}/indexAction">网站首页</a></div>
    <div   class="menuSperator">&nbsp;</div>
    <div   class="menuItem"><a id="UserAction" href="${ctx}/UserAction_personCenter" onclick="return true;">个人中心</a></div>
    <div  class="menuSperator">&nbsp;</div>
    <div  class="menuItem"><a  id="PartyNews"  href="${ctx}/PartyNews_spiritNews" onclick="return menuRedirect(3)">党建动态</a></div>
    <div class="menuSperator">&nbsp;</div>
    <div   class="menuItem"><a id="LearnCenterAction" href="${ctx}/LearnCenterAction_learnCenter" onclick="return menuRedirect(4)">学习园地</a></div>
    <div class="menuSperator">&nbsp;</div>
    <div   class="menuItem"><a id="MyBranchAction" href="${ctx}/MyBranchAction_branchSummary" onclick="return menuRedirect(5)">支部在线</a></div>
    <div class="menuSperator">&nbsp;</div>
    <div   class="menuItem"><a  id="VideoAction" href="${ctx}/VideoAction_view" onclick="return true;">影视精品</a></div>
    <div class="menuSperator">&nbsp;</div>
    <div class="menuItemTime" style="text-align:center;">
    <script language="JavaScript" type="text/javascript"> 
    <!--
           var y = new Date();
           var gy = y.getYear();
           var dName = new Array(" (星期天)", " (星期一)", " (星期二)", " (星期三)", " (星期四)", " (星期五)", " (星期六)");
           var mName = new Array("1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月");
           document.write(y.getFullYear() + "年" + mName[y.getMonth()] + y.getDate() + "日" + dName[y.getDay()]);
    //--> 
    </script>
    </div>
</div>
<decorator:body/>
 <div id="footer">
     <div style="height:20px;">&nbsp;</div>
  <div style="text-align:center; height:18px;">
     <a href="${ctx }/pages/common/index/website_sm.html" target="_blank">网站声明</a>
      &nbsp;|&nbsp;
      <a href="${ctx }/pages/common/index/about_us.html" target="_blank">关于我们</a>
      &nbsp;|&nbsp;
      <a href="mailto:party@bupt.edu.cn">联系我们</a>
  </div>
  <div style="height:5px;">&nbsp;</div>
  <div style="text-align:center;">Copyright &copy; 2011 All rights reserved.&nbsp;&nbsp;&nbsp;&nbsp;版权所有：北京邮电大学党委组织部</div>
</div>
</body>
</html>